$(function(){
    let Id = sessionStorage.getItem('Id');
    alert(Id);
    $(".button").click(function (){
        console.log("111");
        let  id = $("input[name='id']").val();
        let username  = $("input[name='userName']").val();
        console.log(username)
        let password  = $("input[name='passWord']").val();
        console.log(password)
        let name  = $("input[name='name']").val();
        let sex  = $("input[name='sex']").val();
        $.ajax({
            url:"/up/date",
            data:{id:id,userName:username,passWord:password,name:name,sex:sex ,},
            type:"get",
            success:function (resDate){
                console.log(resDate);
            }

        });

    })
});